import request from '@/utils/request'

export default {
    
    //①讲师列表（条件查询分页）
    getBanners(current,limit){
        return request({
            url: `/educms/bannerAdmin/pageBanner/${current}/${limit}`,
            method: 'get'
          })
    }

    // ②删除讲师
    ,
    deletebanner(bannerId){
        return request({
            url: `/educms/bannerAdmin/${bannerId}`,
            method: 'delete'
          })
    }
    //讲师的修改
    ,
    updateBannerInfo(crmBanner){
        return request({
            url: `/educms/bannerAdmin/updateBanner`,
            method: 'post',
            data:crmBanner
          })
    }
    //添加讲师
    ,
    addBanner(crmBanner){
        return request({
            url: `/educms/bannerAdmin/addBanner`,
            method: 'post',
            data:crmBanner
          })
    },

    getBannerInfo(bannerId){
        return request({
            url: `/educms/bannerAdmin/getBannerInfo/${bannerId}`,
            method: 'get'
          })
    }

}
